<?php
namespace Admin\Controller;
use Think\Controller;
class IndexController extends Controller
{
     public function index($adnameA = '')
    {
        if (isset($_SESSION['adnameA']))
         {
     
        $this->count1 = M('course')->count();
        $this->count2 = M('video')->count();
        $this->count3 = M('club')->count();
        $this->count4 = M('user')->count();
        $this->count5 = M('train')->count();
        $this->count6 = M('message')->count();
        $this->count7 = M('order')->count();
        $this->display();
        
     }else{
            $this->redirect('/Admin/Form/login');
        }
        
    }

}